package com.xrit.mapper;

import com.github.pagehelper.Page;
import com.xrit.pojo.CheckItem;
import com.xrit.pojo.Member;
import com.xrit.pojo.MemberExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MemberMapper {

    //查询本月的数据
    public Integer findMemberCountBeforeDate(String date);

    //2.是否关联订单
    int selectMemberAndOrder(Integer id);

    //1.查询带分页，并且支持条件查询
    Page<Member> selectByQueryString(String queryString);

    long countByExample(MemberExample example);

    int deleteByExample(MemberExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Member record);

    int insertSelective(Member record);

    List<Member> selectByExample(MemberExample example);

    Member selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Member record, @Param("example") MemberExample example);

    int updateByExample(@Param("record") Member record, @Param("example") MemberExample example);

    int updateByPrimaryKeySelective(Member record);

    int updateByPrimaryKey(Member record);
}
